<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.animation{
				width: 100px;
				height: 100px;
				background-color: red;
				
				animation: movebox 2s infinite;
				
				/*改变默认方式 支持坐标系*/
				position: relative;
			}
			/*定义一个动画(关键针)*/
			@keyframes movebox{
				from{ left: 0px;}
				to{ left: 100px;}
			}
		</style>
	</head>
	<body>
		<h3>移动方块动画效果</h3>
		<h5>animation</h5>
		
		<div class="animation"></div>
	</body>
</html>
